コード署名ツールでMac開発者証明書を使用してJavaアプリケーションに署名するにはどうすればよいですか? (How to use Mac Developer Certificate with codesign tool to sign Java application?)


問題の説明

コード署名ツールでMac開発者証明書を使用してJavaアプリケーションに署名するにはどうすればよいですか? (How to use Mac Developer Certificate with codesign tool to sign Java application?)

I am using Oracle App Bundler to sign my Java application for OSX. I use this following commands to sign my application:

codesign ‑f ‑s "MyName" dist/MyCool.app
codesign ‑vv dist/MyCool.app

"MyName" is a self‑signed certificate common name that I created with Key Chain Access. It went well, although OSX gives warning that it come from untrusted developer. Now that I have create a Mac Developer certificate from our Apple Developer subscription, how do I use it? I have already imported the downloaded mac_development.cer into Key Chain Access, but using its common name, codesign still complain no identity found

How do I properly import it into my development environment?


リファレンスソリューション

方法 1:

The codesign command should be:

codesign ‑s "Developer ID Application: Certificate Common Name" dist/MyCool.app

You also need to add the intermediate certificates from Apple (in case you haven't added those to your keychain). 

  • Developer ID Certification Authority
  • Apple Worldwide Developer Relations Certification Authority (WWDR)

    1. http://www.apple.com/certificateauthority/
    2. Download the Intermediate Certificates listed.
    3. Add them to your keychain

Also, take a look at the Apple Developer Codesigning Workflow Guide

(by swdevl'L'l)

リファレンスドキュメント

  1. How to use Mac Developer Certificate with codesign tool to sign Java application? (CC BY‑SA 3.0/4.0)

#signing #macos #java






関連する質問

Google アクセス トークンを使用してユーザー プロファイルを取得するにはどうすればよいですか (How do I get user profile using Google Access Token)

コード署名ツールでMac開発者証明書を使用してJavaアプリケーションに署名するにはどうすればよいですか? (How to use Mac Developer Certificate with codesign tool to sign Java application?)

apk の署名中にエラーが発生しました: 見つかりません (Error during signing apk: unable to find)

JwtSecurityTokenHandler.CreateToken で署名するときに「無効なアルゴリズムが指定されました」 ("Invalid algorithm specified" when signing with JwtSecurityTokenHandler.CreateToken)

アセンブリの FullName プロパティのチェックを無効にできますか? 厳密な命名を使用せずに同様のチェックを実行できますか? (Can a check on the FullName property of an assembly be defeated? Can a similar check be performed without the use of strong naming?)

Cordova Build.json のパスワード セキュリティ (Cordova Build.json password security)

アプリリリース用の keytool による秘密鍵の取得 (Obtaining a private key through the keytool for app release)

android bundleRelease は aab に署名しません (android bundleRelease does not sign the aab)

証明書に iOS 署名証明書を作成する (create ios signing certificate in my certificates)

APKに署名する必要がある理由は何ですか? (What reasons does it have to sign apk?)

signtool.exe エラー: Excel マクロの署名時に SignerSign() が失敗しました (-2147220492/0x800403f4) (signtool.exe Error: SignerSign() failed (-2147220492/0x800403f4) when signing Excel Macro)

署名付き URL のこの実装は、かなり安全ですか? (Is this implementation of signed URLs reasonably secure?)







コメント